﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Unity.Jobs;
using Unity.Jobs.LowLevel.Unsafe;
using UnityEngine.Jobs;


namespace ZyGame.Execute
{
    public class UnsafeRunnable
    {
        private Queue<IJob> Jobs = new Queue<IJob>();


        public void Execute(IJob job)
        {
            Jobs.Enqueue(job);
        }

        public void DoRunning()
        {
            while (Jobs.TryDequeue(out IJob job))
            {

            }
        }
    }
}
